package com.cloudptt.wp.ui.address.map.data;

public class Point{
	private double lng;
	private double lat;
	private double height;

	public double getLng() {
		return lng;
	}
	public void setLng(double lng) {
		this.lng = lng;
	}
	public double getLat() {
		return lat;
	}
	public void setLat(double lat) {
		this.lat = lat;
	}
	public double getHeight() {
		return height;
	}
	public void setHeight(double height) {
		this.height = height;
	}
	
	public Point(){
		
	}
	
	public Point( double lat ,double lng, double height){
		this.lat = lat;
		this.lng = lng;
		this.height = 0;  // default value is 0, modified to 'height' if needed.
	}
	
	@Override
	public boolean equals(Object obj) {
		if (obj instanceof Point) {
			Point mapPoint = (Point)obj;
			return (mapPoint.getLng() == lng && mapPoint.getLat() == lat && mapPoint.getHeight() == height) ? true : false;
		}
		else {
			return false;
		}
	}
	
	@Override
	public String toString() {
		// TODO Auto-generated method stub
		return "Point [lng=" + lng +",  lat=" + lat + "]";
	}
	
}
